package com.lelefly.constant;

import java.text.SimpleDateFormat;

public class Constant {

	public static final SimpleDateFormat sdf = new SimpleDateFormat(
			"yyyy/MM/dd HH24:mm:ss SSS");

	public static final int DB_STATUS_SUCCESS = 1;
	public static final int DB_STATUS_FAIL = 0;
	
	public static final int STATUS_SUCCESS = 1;
	public static final int STATUS_FAIL = 0;

	public static final String HTTP_STATUS_OK = "1";
	public static final String HTTP_STATUS_FAIL = "0";
	
	public static final String HTTP_STATUS_INFO_SUCCESS = "success";
	public static final String HTTP_STATUS_INFO_FAIL = "fail";
	// token失效
	public static final String HTTP_STATUS_TOKEN_INVALID = "600";
	/**
	 * 身份证未注册错误码
	 */
	public static final String HTTP_ID_CARD_IS_NULL = "1001";
	public static final String HTTP_STATUS_DEFERROR = "server error";
	/* ============================短信服务器相关参数============================== */
	public static final String SERVER = "app.cloopen.com";
	public static final String PORT = "8883";
	public static final String ACCOUNT = "aaf98f89521b91a30152302bf5032318";
	public static final String TOKEN = "481433f0e9234ede82f280ce954dca40";
	public static final String APPID = "aaf98f8952305ced01523567730f0eaa";
	public static final String TEMPLATESID = "108783";

	public static final String TEMPLATE_INVITATION_ID = "222884";
	/* ========================================================== */

	/* ============================业务相关参数===================== */
	// 保险未处理状态
	public static final int INSURANCE_UNHANDLED = 0;
	// 保险已处理状态
	public static final int INSURANCE_HANDLED = 1;
	// 组织账户注册
	public static final String IS_UNIT = "0";
	// 个人账户注册
	public static final String IS_PERSONAL = "1";
	// 组织可用状态
	public static final int ORGANIZATION_ACTIVE = 0;
	// 账号类型为经销商
	public static final String TYPE_DISTRIBUTOR = "6";

	/* ========================= 短信类型 ================= */
	// 短信注册
	public static final String MES_TYPE_REG = "1";
	// 邀请飞手
	public static final String MES_TYPE_INVITATION = "2";

	/**
	 * token,7天有效时间
	 */
	public static final long TOKEN_EXPIRETIME = 60 * 60 * 24 * 20;
	/**
	 * 激活飞机验证码
	 */
	public static final int CODE_TYPE_ACTIVE_MES = 3;
	
	
	public static final String SESSION_INFO = "session_info";
}
